package com.bw.kotlindemo.kotlin.model.net

import com.bw.kotlindemo.java.model.bean.LiveGiftListBean
import com.bw.kotlindemo.java.model.bean.LiveListBean
import com.bw.kotlindemo.kotlin.bean.KLiveTypeBean
import io.reactivex.Observable
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.Query

/**
 * desc:
 * create by xushaodong on 2023/4/5
 */
interface KApiService {

    @Headers("userId:78")
    @GET("live-platform/findLiveTypeList")
    fun getListType(): Observable<KLiveTypeBean>

    @Headers("userId:78")
    @GET("live-platform/findLiveTypeList")
    fun getListTypeByKotlin():Call<KLiveTypeBean>

    @GET("live-platform/findLiveList")
    fun getLiveListByJava(
        @Query("liveType") liveType: Int,
        @Query("page") page: Int,
        @Query("size") size: Int
    ): Observable<LiveListBean>

    @GET("live-platform/findLiveList")
    fun getLiveListByKotlin(
        @Query("liveType") liveType: Int,
        @Query("page") page: Int,
        @Query("size") size: Int
    ): Call<LiveListBean>

    @GET("live-platform/findAllGift")
    fun getGiftList():Observable<LiveGiftListBean>


}